import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.*;
public class OutputUrls {

    FileMethods methods=new FileMethods();
    inputUrl in=new inputUrl();

    public void getFileOfReferences(Set <String> parsedUrls) throws IOException {

        for(String parsedUrl:parsedUrls){
            if(in.checkUrl(parsedUrl)){continue;}
            System.out.println("Start downloading    "+parsedUrl);
            methods.writeFile(parsedUrl,in.readUrl(parsedUrl));
            System.out.println("Done!");
        }
        System.out.println(" Downloading is completely done!");
    }
}

